<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.userpermissions.bo.impl.DcssUser"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>Login</title>

		<link rel="stylesheet" href="style/element.css" />

		<%
			if (session.getAttribute(SessionName.UserSession) != null) {
				response.sendRedirect(basePath + "home/index.jsp");
				return;
			}
		%>
	</head>

	<body style="background: url(images/bodyBG.gif) repeat-x;">

		<div class="main">
			<s:form name="loginForm" action="account/login.do" method="post">
				<div id="login">
					<div id="loginLogo">
						<img src="images/Loginlogo.gif" />
					</div>
					<div id="loginContent">
						<h1>
							用户登录
						</h1>
						<div id="loginbar1" class="loginbar">
							<span class="loginbarleft">邮箱</span>
							<!-- <input name="" type="text" class="logintxb" /> -->
							<s:textfield name="user.email" cssClass="logintxb"
								required="ture" />
							<span class="loginbarright"><a href="account/register.jsp">注册</a>
							</span>
						</div>
						<div id="loginbar2" class="loginbar">
							<span class="loginbarleft">密码</span>
							<!--  <input name="" type="text" class="logintxb" /> -->
							<s:password name="user.password" cssClass="logintxb"
								required="ture" />
							<span class="loginbarright"><a href="#">忘记密码</a> </span>
						</div>
						<div class="loginbtn">
							<!-- <input name="" type="button" value="登录" id="loginBtn" /> -->
							<s:submit type="button" value="登录" id="loginBtn" />
						</div>
					</div>
				</div>
			</s:form>
			<div class="footer">
				版权归华中科技大学软件学院所有 Copyright Reserved
			</div>

		</div>
	</body>
</html>
